<#import "base.ftl" as base/>
<#import "spring.ftl" as spring/>

<@base.baseTemplate title="scanConfiguration">
	<@spring.bind "configuration.*"/>
	<#if spring.status.error>
		<div class="error">
		    <#list spring.status.errorMessages as error>
				${error}<br/>
		    </#list>
		</div>
	</#if>
	<#if saved! == "1">
		<div class="infobox"><@spring.message "successfullysaved"/></div>
	</#if>
	<form name="user" action="" method="post">
		<input type="hidden" name="id" value="${configuration.id!}">
		
		<div class="line"><label><@spring.message "startIp"/>:</label><input type="text" name="startIp" value="${configuration.startIp!}" class="text" /></div>
		<div class="line"><label><@spring.message "endIp"/>:</label><input type="text" name="endIp" value="${configuration.endIp!}" class="text" /></div>
		<div class="line"><label><@spring.message "agentPort"/>:</label><input type="text" name="agentPort" value="${configuration.agentPort?c}" class="text" /></div>
		
		<br/>
		<div class="line"><input type="submit" value="<@spring.message "save"/>" class="submit button" /></div>
	</form>
</@base.baseTemplate>